package com.leizi.igym.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-03  08:36
 * @Description:
 */

@ConfigurationProperties(prefix = "igym.jwt")
@Component
@Data
public class JWTProperties {

    /**
     * 管理端员工生成jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

    /**
     * 用户端微信用户生成jwt令牌相关配置
     */
    private String userSecretKey;
    private long userTtl;
    private String userTokenName;
}
